import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import elementPlus from './plugins/elementPlus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia'

// 全局样式
import './styles/index.scss'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}
app.use(createPinia())
app.use(router)
app.use(elementPlus, { size: 'small', zIndex: 3000 })
// app.mount('#app')


router.isReady().then(() => {
  app.mount("#app");
});